package sv.com.renacempleo.dto.red.vinculacion;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import sv.com.renacempleo.dto.red.RedDemandantes;
import sv.com.renacempleo.dto.red.RedOferta;

@SuppressWarnings("serial")
@Entity
@Table(name = "red_oferta_demandante")
public class RedOfertaDemandante implements Serializable{

	@Id
	@Column(name = "red_demofe_id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long redOfertaDemandanteId;
	@ManyToOne
	@JoinColumn(name = "red_dem_folio", nullable = false)
	private RedDemandantes redDemandante;
	@ManyToOne
	@JoinColumn(name = "red_ofe_id", nullable = false)
	private RedOferta redOferta;
	
	public Long getRedOfertaDemandanteId() {
		return redOfertaDemandanteId;
	}
	public void setRedOfertaDemandanteId(Long redOfertaDemandanteId) {
		this.redOfertaDemandanteId = redOfertaDemandanteId;
	}
	public RedDemandantes getRedDemandante() {
		return redDemandante;
	}
	public void setRedDemandante(RedDemandantes redDemandante) {
		this.redDemandante = redDemandante;
	}
	public RedOferta getRedOferta() {
		return redOferta;
	}
	public void setRedOferta(RedOferta redOferta) {
		this.redOferta = redOferta;
	}
	
}
